export function pagePermission(name,allMenu,_this){
    allMenu = Array.from( allMenu )
    allMenu.forEach((item) => {
        if( item.name == name ){
            _this.permiList = item.sysFunc; 
            _this.menuCode = item.menuCode;
        }else if ( item.children && item.children.length > 0 ){
            item.children = Array.from( item.children );
            pagePermission(name,item.children,_this);
        }
    });
}
 